//ˢ�²�����б�
	function refreshSideBar() {
		var protc=window.location.protocol+'//';
		var host_Nmae=window.location.host;
		var context_Path=window.location.pathname;
		var comp_Path=protc+host_Nmae+'/SSHMyBlog'+'/';
//		alert(comp_Path);

		
		AddRequestArray(comp_Path+"servlet/RefreshSideBar?areaID=" + 1, true, "GET", null, updateArticle);
		AddRequestArray(comp_Path+"servlet/RefreshSideBar?areaID=" + 3, true, "GET", null, updateCategory);
		AddRequestArray(comp_Path+"servlet/RefreshSideBar?areaID=" + 4, true, "GET", null, updateLinks);
		AddRequestArray(comp_Path+"servlet/RefreshSideBar?areaID=" + 2, true, "GET", null, updateComment);
		
		

	}
	// ���·����б�
	function updateCategory() {
		clearCatgList();
		//获取列表对象
		var catUL = document.getElementById("cat-ul");
		var names = reqObj.responseXML.getElementsByTagName("name");
		var contains=reqObj.responseXML.getElementsByTagName("contain");
		var descriptions = reqObj.responseXML
				.getElementsByTagName("decription");
		var urls = reqObj.responseXML.getElementsByTagName("url");
		var catLI = null;
		var catURL=null;
		// ���� xml Ԫ�أ����� select �е� option ��
		for ( var i = 0; i < names.length; i++) {
			catLI = document.createElement("li");
			catURL = document.createElement("a");
			catURL.setAttribute("href", urls[i].firstChild.nodeValue);
			catURL.setAttribute("title", descriptions[i].firstChild.nodeValue);
			catURL.innerHTML = names[i].firstChild.nodeValue+"("+contains[i].firstChild.nodeValue+")";
			catLI.className="cat-item cat-item-1";
			catLI.appendChild(catURL);
			catUL.appendChild(catLI);
		}
	}
	function clearCatgList() { // �������б��е����� 
		var catUL = document.getElementById("cat-ul");
		while (catUL.childNodes.length > 0) {
			catUL.removeChild(catUL.childNodes[0]);
		}
	}

	// ���������б�
	function updateLinks() {
		clearLinkList();
		//���Ҫ���µ��б��ǩ 
		var catUL = document.getElementById("link-ul");
		// �����ط���������������XML�ĵ� 
		//��õ�һ����������
		var cats = reqObj.responseXML.firstChild.nodeName;
		//��õ�һ���������к��� 
		var catsn = reqObj.responseXML.firstChild.childNodes;
	//	alert("links" + cats + ",childs=" + catsn.length);

		var names = reqObj.responseXML.getElementsByTagName("name");
		var descriptions = reqObj.responseXML
				.getElementsByTagName("decription");
		var urls = reqObj.responseXML.getElementsByTagName("url");
		var catLI = null;
		var catURL=null;
		// ���� xml Ԫ�أ����� select �е� option ��
		for ( var i = 0; i < names.length; i++) {
			catLI = document.createElement("li");
			catURL = document.createElement("a");
			catURL.setAttribute("href", urls[i].firstChild.nodeValue);
			catURL.setAttribute("title", descriptions[i].firstChild.nodeValue);
			catURL.innerHTML = names[i].firstChild.nodeValue;
//			alert(catURL.innerHTML);
			catLI.appendChild(catURL);
			catUL.appendChild(catLI);
		}
	}
	function clearLinkList() { // �������б��е����� 
		var catUL = document.getElementById("link-ul");
		while (catUL.childNodes.length > 0) {
			catUL.removeChild(catUL.childNodes[0]);
		}
	}
	
	// 更新最近评论
	function updateComment() {
		clearCommentList();
		//解析XML获取列表对象
		var catUL = document.getElementById("comt-ul");
		var guests = reqObj.responseXML.getElementsByTagName("guest");
		var titles=reqObj.responseXML.getElementsByTagName("title");
		var urls = reqObj.responseXML.getElementsByTagName("comtURL");
		var catLI = null;
//		var catURL=null;
		//生成html代码
		for ( var i = 0; i < guests.length; i++) {
			catLI = document.createElement("li");
//			catURL = document.createElement("a");
//			catURL.setAttribute("href", urls[i].firstChild.nodeValue);
//			catURL.setAttribute("title","RE:"+ titles[i].firstChild.nodeValue);
//			catURL.innerHTML =titles[i].firstChild.nodeValue+"上发表评论";
			catLI.innerHTML=guests[i].firstChild.nodeValue+"&nbsp;在<a href="+ urls[i].firstChild.nodeValue+">"+titles[i].firstChild.nodeValue+"</a>上的评论";
			catLI.className="cat-item cat-item-1";
//			catLI.appendChild(catURL);
			catUL.appendChild(catLI);
		}
	}
	function clearCommentList() { // �������б��е����� 
		var catUL = document.getElementById("comt-ul");
		while (catUL.childNodes.length > 0) {
			catUL.removeChild(catUL.childNodes[0]);
		}
	}
	
	// 更新最近发表
	function updateArticle() {
		clearArticleList();
		//解析XML获取列表对象
		var catUL = document.getElementById("art-ul");
		var summarys = reqObj.responseXML.getElementsByTagName("shortTitle");
		var titles=reqObj.responseXML.getElementsByTagName("title");
		var urls = reqObj.responseXML.getElementsByTagName("url");
		var catLI = null;
		var catURL=null;
		//生成html代码
		for ( var i = 0; i < summarys.length; i++) {
			catLI = document.createElement("li");
			catURL = document.createElement("a");
			catURL.setAttribute("href", urls[i].firstChild.nodeValue);
			catURL.setAttribute("title",titles[i].firstChild.nodeValue);
			catURL.innerHTML = summarys[i].firstChild.nodeValue;
			catLI.className="cat-item cat-item-1";
			catLI.appendChild(catURL);
			catUL.appendChild(catLI);
		}
	}
	function clearArticleList() { // �������б��е����� 
		var catUL = document.getElementById("art-ul");
		while (catUL.childNodes.length > 0) {
			catUL.removeChild(catUL.childNodes[0]);
		}
	}
	